import Core.Basic
from Core.package import *




class WorkerThread(QThread):
    finished = Signal(str)
    
    
    def run(self):
        # 模拟一个耗时操作
        
        # 发送信号并传递消息
        print(f"WorkerThread Class id = {threading.get_ident()}")
        self.finished.emit("任务完成")



class Worker(QRunnable):
    def __init__(self):
        super().__init__()
        

    def run(self):
        print(f"WorkerThread Class id = {threading.get_ident()}")        
        
